import { sequelize } from "../db/sequelize.js";
import { DataTypes } from "sequelize";

export const User = sequelize.define("user", {
  uId: {
    type: DataTypes.INTEGER,
    primaryKey: true, //设置主键
    autoIncrement: true, //设置自增
  },
  uName: {
    type: DataTypes.STRING,
    allowNull: true, //允许字段为空,
    unique: false, //允许字段不唯一
  },
  uAge: {
    type: DataTypes.INTEGER,
  },
});
